package com.example.timyag.service.impl

import com.example.timyag.service.ITestService
import com.example.timyag.service.bo.BookBo
import com.example.timyag.service.impl.mapper.GvBookMapper
import org.springframework.stereotype.Service

import javax.annotation.Resource

/**
 *
 * @author yangjf
 * @time 2019-05-17 16:08
 */

@Service
class GvTestServiceImpl implements ITestService {

    @Resource(name = "gvBookMapper")
    private GvBookMapper gvBookMapper

    @Override
    String sayHello(String p1) {
        "hello:" + p1 + ", this is groovy impl"
    }

    @Override
    BookBo addBook(String name) {
        println(gvBookMapper.selectMaxId())
        BookBo bookbo = new BookBo()
    }
}
